#!/bin/bash

docker run --name jenkins \
--restart=always -d  \
-p 8080:8080 \
-v /home/jenkins/data:/var/jenkins_home \
jenkins/jenkins:lts

docker exec -it jenkins cat /var/jenkins_home/secrets/initialAdminPassword
# 查看解锁密钥